<table width="100%" cellpadding="0" cellspacing="0" border="0">
    <thead>
        <tr>
            {if $arrResult && isset($smarty.session.covers) && ( (($smarty.session.covers&1<<3)>0) || (($smarty.session.covers&1<<4)>0) )}
                <th class="firstChild" width="30"><input type="checkbox" name="pcheckall" id="pcheckall" onclick="javascript:checkAll(this.form,'pcoverid[]',this.checked);"/></th>
                 <th width="419">Hình minh họa</th>
            {else}
                <th class="firstChild" width="419">Hình minh họa</th>
            {/if}                                       
            <th>Tên mẫu</th>
            <th width="120">Đăng bởi</th>
            <th width="80">Hiển thị</th>
            <th width="80">Ngày đăng</th>
            {if $arrResult && isset($smarty.session.covers) && ($smarty.session.covers&1<<2)>0}
                <th width="20">&nbsp;</th>
            {/if}
        </tr>
    </thead>
    <tbody>
        {if $arrResult}
            {foreach item=item from=$arrResult}
                <tr class="{cycle values="odd,even"}">
                    {if isset($smarty.session.covers) && ((($smarty.session.covers&1<<3)>0) || (($smarty.session.covers&1<<4)>0))}
                        <td class="firstChild" align="center">
                        	<input type="checkbox" id="pcoverid{$item.coverid}" name="pcoverid[]" value="{$item.coverid}" onclick="javascript:checkOneItem(this.form, 'pcheckall')"/>
                        </td>
                        <td align="center">{image path=$item.image type=6 small=2}</td>
                    {else}
                        <td class="firstChild" align="center">{image path=$item.image type=6 small=2}</td>
                    {/if}
                    <td>
                    	{$item.name}                        
                    </td>
                    <td>{if $item.userid > 0}{$item.userid|ouser}{else}Administrator{/if}</td>
                    <td align="right">{$item.disorder}</td>
                    <td align="center">{$item.postdate|date_format:"%d/%m/%Y"}</td>
                    {if ($smarty.session.covers&1<<2)>0}
                    	<td align="center">          
                        	<a href="{$smarty.const.HOST_BACKEND}cover/edit?coverid={$item.coverid}" title="Cập nhật thông tin">
                            	<img src="{$smarty.const.HOST_STATICS}img/icon/ad-edit.png" alt="Edit" border="0" width="16" height="16" />
                          	</a>
                    	</td>
                    {/if}
                </tr>
            {/foreach}
        {else}
        	<tr><td colspan="5" align="center">Không có dữ liệu</td></tr>
        {/if}
    </tbody>
</table>